Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 8, 2026

Summary

  • Remove flake-parts dependency from flake.nix
  • Use standard nixpkgs.lib.genAttrs pattern for multi-system support
  • Simplify the flake configuration while maintaining identical functionality

Rationale

The devShell configuration is simple enough that flake-parts adds unnecessary complexity. Using the standard Nix pattern reduces dependencies without losing any functionality.

Test plan

  • Run nix develop and verify the shell works correctly
  • Verify all buildInputs are available (nodejs_24, pnpm_10, etc.)

Summary by cubic

Removed flake-parts and switched to nixpkgs.lib.genAttrs to generate devShells across systems. Functionality stays the same, with a simpler flake.

  • Refactors

    • Defined devShells per system using forAllSystems and nixpkgs.legacyPackages, keeping the same buildInputs.
  • Dependencies

    • Removed flake-parts and nixpkgs-lib entries from flake.lock.

Written for commit 1f0f1b3. Summary will update on new commits.

Simplify flake.nix by removing flake-parts and using standard
nixpkgs.lib.genAttrs pattern instead. The devShell configuration
is simple enough that flake-parts adds unnecessary complexity.

- Remove flake-parts input
- Use forAllSystems helper with genAttrs
- Maintain identical functionality
Copilot AI review requested due to automatic review settings January 8, 2026 09:17
@ryoppippi ryoppippi requested a review from a team as a code owner January 8, 2026 09:17
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 8, 2026

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@284

commit: 1f0f1b3

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the Nix flake configuration by removing the flake-parts dependency and replacing it with the standard nixpkgs.lib.genAttrs pattern for multi-system support.

  • Removed flake-parts and nixpkgs-lib dependencies
  • Implemented standard Nix pattern using forAllSystems helper with genAttrs
  • Maintained identical devShell functionality with all buildInputs preserved

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
flake.nix Refactored to use standard multi-system pattern, removing flake-parts dependency while preserving devShell configuration
flake.lock Removed flake-parts and nixpkgs-lib entries, keeping only nixpkgs dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The systems list is missing "x86_64-darwin" (Intel macOS). This system is commonly supported in Nix flakes alongside the three systems listed here. Consider adding it to maintain broader compatibility, especially if users on Intel Macs need to use this development shell.

Suggested change
"aarch64-darwin"
"aarch64-darwin"
"x86_64-darwin"

Copilot uses AI. Check for mistakes.
@ryoppippi ryoppippi merged commit 6e61fd3 into main Jan 8, 2026
26 checks passed
@ryoppippi ryoppippi deleted the chore/remove-flake-parts branch January 8, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants